package com.zc.backend.mapper;

import com.zc.backend.entity.Page;
import com.zc.backend.entity.Student;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface StudentMapper {

    public List<Student> queryAll(Integer start,Integer end);
    public void add(Student student);
    public void delete(Integer id);
    public Student queryById(Integer id);
    public void update(Student student);
    public Integer count();
    public List<Student> queryByName(String name,Integer start,Integer end);
    public Integer countByName(String name);
}
